package com.neussoft.neu24.dibuy.entity;

import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

/**
 * @program: learn
 * @description:
 * @author: Jingdi.Duan ,duanjingdi@msn.com
 * @create: 2024-07-10 16:09
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Table(name = "table_demo")
public class Demo {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer demoid; //   int auto_increment
    private String dname = "dibuy"; //   varchar(50) null,
    private LocalDateTime regtime = LocalDateTime.now();
}
